import request from "@/api/request"
import mockRequest from '@/api/mockRequest'

export const getCategoryList = () => {
  return request({
    url: '/product/getBaseCategoryList',
    method: 'get'
  })
}

export const getBannerListApi = () => {
  return mockRequest({
    url: '/banner',
  })
}

export const getFloorListApi = () => {
  return mockRequest({
    url: '/floor'
  })
}

export const getSearchInfoApi = (data) => {
  return request({
    url: '/list',
    method: 'post',
    data
  })
}